package cn.edu.scau.cmi.xuandingcong.client;

import java.util.Scanner;

import cn.edu.scau.cmi.xuandingcong.simpleFactoryMethod.MeatFactory;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class SimpleFactoryMethodClient extends Application {
public static void main(String args[]) {
		
		launch(args);
		
	}

	@Override
	public void start(Stage primaryStage) throws Exception {
		// TODO Auto-generated method stub
		try {
			Parent root = FXMLLoader.load(getClass().getResource("/cn/edu/scau/cmi/xuandingcong/simpleFactoryMethod/simpleFactory.fxml"));
			Scene scene = new Scene(root);
			
			primaryStage.setScene(scene);
			primaryStage.setTitle("简单工厂模式");
			primaryStage.show();
		}catch(Exception e) {
			e.printStackTrace();
		}
	}
}
